<?php
/**
 * Klasse zum erstellen von Listen
 *
 * @author		Joachim Ruf, Loresoft Software (http://www.loresoft.de)
 * @license		New BSD License
 * @version		Class for Bootstrap v2.3.2
 *
 * */


Class Bootstrap_List_Handler
{
	const	INLINE				= 'inline';
	const	INLINE_BLOCK		= 'inline-block';
	const	UNSTYLED			= 'unstyled';

	private $arrList			= array();


	/**
	 * @param string $_method	: post|get
	 * @param string $_action	: aufzurufende Seite
	 * @param string $_enctype	: multipart/form-data
	 * */
	function __construct () {
	}


	/**
	 * Gibt einen Ordered Handler aus
	 * @return Bootstrap_List_Ordered_Handler
	 * */
	public function addOrderedHandler ($_class = NULL) {
		return $this->arrList[]	= new Bootstrap_List_Ordered_Handler($_class);
	}


	/**
	 * Gibt einen Unordered Handler aus
	 * @return Bootstrap_List_Unordered_Handler
	 * */
	public function addUnorderedHandler ($_class = NULL) {
		return $this->arrList[]	= new Bootstrap_List_Unordered_Handler($_class);
	}


	/**
	 * @desc Gibt das Grid aus.
	 * @return string
	 * */
	public function display() {
		$result	= NULL;

		if (count($this->arrList)) {
			/* @var $oRow Bootstrap_List_Ordered_Handler */
			foreach ($this->arrList as $key => $oList) {
				$result .=	$oList->display();
			}
		}

		return $result;
	}


}


?>